#include "StdTypes.h"
#include "Meas.h"
#include "TaskSchema.h"

uint32 StackCons_Task_1ms;
uint32 StackCons_Task_10ms;
uint32 StackCons_Task_100ms;
uint32 StackCons_Task_Ini;

void Measurement_MainFunction(void)
{
    // here no need for critical section,
    // for the different stack values must not be consistent.
    StackCons_Task_1ms   = uxTaskGetStackHighWaterMark(Task_1ms_Handle);
    StackCons_Task_10ms  = uxTaskGetStackHighWaterMark(Task_10ms_Handle);
    StackCons_Task_100ms = uxTaskGetStackHighWaterMark(Task_100ms_Handle);
    StackCons_Task_Ini   = uxTaskGetStackHighWaterMark(Task_Ini_Handle);

    // TODO: implement the free ram measurement here
}


